import React, { Component } from "react";
// import { Redirect } from 'react-router-dom'

class Index extends Component {
  constructor(props) {
    super(props);
    this.props.history.push('/home/')
    this.state = {
      name: 'Alomy'
    };
  }
  render() {
    return (
      <>
        {/* 标签式重定向 => Redirect 必须写在 return 里面，否则会失效 */}
        {/* <Redirect to="/home/" /> */}
        <h2>Alomy</h2>
      </>
    );
  }
}

export default Index;
